package entity;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

@Entity
@DiscriminatorValue("SEMIELABORADO")
public class SemielaboradoBD extends ProductoBD implements Serializable {
	private static final long serialVersionUID = 1L;

	@Embedded
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "idReceta")
	private RecetaBD recetaBD;

	public SemielaboradoBD() {
		super();
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public void setRecetaBD(RecetaBD recetaBD) {
		this.recetaBD = recetaBD;
	}

	public RecetaBD getRecetaBD() {
		return recetaBD;
	}

}
